@layout("/backend/common/_container.html"){
<div class="inner-fit">
<div class="hisui-layout" data-options="fit:true">
	<div data-options="region:'west',title:'我的文件夹',split:true,split:true" style="width:220px;">
		<div class="dhcc-hisui-toolbar">
			<div class="dhcc-hisui-toolbar-btn">
				<a onclick="javascript:Pan.addFolder()" class="hisui-linkbutton" style="width:31.5%" iconCls="icon-add" plain="true">新增</a>
				<a onclick="javascript:Pan.editFolder()" class="hisui-linkbutton" style="width:31.5%" iconCls="icon-edit" plain="true">修改</a>
				<a onclick="javascript:Pan.deleteFolder()" class="hisui-linkbutton" style="width:31.5%" iconCls="icon-remove" plain="true">删除</a>
			</div>
			<div class="dhcc-hisui-toolbar-seach">
				<input type="text" id="seachKey" value="" class="textbox" />
			</div>

		</div>
		<ul id="folderTree" class="ztree"></ul>
	</div>
	<div data-options="region:'center',title:'我的文件',split:true"  style="overflow-x: hidden;padding:10px">
		<div class="row row-lg">
			<div class="col-sm-12">
				<div class="dhcc-con dhcc-con-boder margin-t-10">
					<div class="dhcc-con-left">
						<#InputCon id="fileName" name="文件名称" />
						<#DateCon id="startDate" name="开始日期"/>
						<#DateCon id="endDate" name="结束日期" />
						<#Button name="查询" icon="fa fa-search" clickFun="Pan.search()" cls="floatright"/>
					</div>
				</div>
				<div class="hidden-xs" id="PanTableToolbar" role="group">
					@if(shiro.hasPermission("pan:add")){
					<#FileUpload name="上传"  id="up" sourse="0" folderId="Pan.getFolderId()" space="true" uploadCompleteEvent="uprefresh"/>
					@}
					@if(shiro.hasPermission("pan:delete")){
					<#Button name="删除文件" btnCss="l-bt-red" icon="fa fa-remove" clickFun="Pan.del()" space="true"/>
					@}
					<#Button name="转发"  icon="icon-w-export" clickFun="Pan.forward()"   space="true"/>
					<#Button name="下载文件"  icon="icon-w-file-open" clickFun="Pan.download()" space="true"/>

					<#Button name="转移到" id="mobile"  icon="icon-w-import" clickFun="Pan.folderSelectTree(this)" space="true"/>
				</div>

				<#Table id="PanTable"/>
			</div>
		</div>
	</div>
</div>
</div>
<script src="${ctxPath}/static/backend/system/pan/index.js"></script>
<script>
	function uprefresh() {
        Pan.table.refresh();
    }
</script>
@}
